package com.team.RunsFast_Api.controller;

import com.team.RunsFast_Api.service.intf.CouponService;
import com.team.runsfast.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api
@RequestMapping("/api/coupon/")
@CrossOrigin
public class CouponController {

    @Autowired
    private CouponService service;
    @GetMapping("selectById")
    public R selectById(String token){
        return service.selectByIds2(token);
    }

}
